
package requests

import (
	"github.com/goravel/framework/contracts/http"
	"github.com/goravel/framework/contracts/validation"
)

type UserSearchRequest struct {

	Uid string `json:"uid" form:"uid"`

	Keyword string `json:"keyword" form:"keyword"`

	Vicword string `json:"vicword" form:"vicword"`

	Num string `json:"num" form:"num"`

	Result string `json:"result" form:"result"`

	IsDel string `json:"is_del" form:"is_del"`

	AddTime string `json:"add_time" form:"add_time"`

}

func (r *UserSearchRequest) Authorize(ctx http.Context) error {
	return nil
}

func (r *UserSearchRequest) Rules(ctx http.Context) map[string]string {
	return map[string]string{

		"uid": "required",

		"keyword": "required",

		"vicword": "required",

		"num": "required",

		"result": "required",

		"is_del": "required",

		"add_time": "required",

	}
}

func (r *UserSearchRequest) Messages(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserSearchRequest) Attributes(ctx http.Context) map[string]string {
	return map[string]string{}
}

func (r *UserSearchRequest) PrepareForValidation(ctx http.Context, data validation.Data) error {
	return nil
}
